<?php

namespace app\service;

use think\Db;

class Service
{
    public function __construct($data = [])
    {
    }

    public static function init()
    {
        return new static();
    }


    public static function returnData($code = 0, $msg = 'ok', $data = [])
    {
        return ['code' => $code, 'msg' => $msg, 'data' => $data];
    }
}